import request from '@/utils/request'

export const getParkAPI = (params) => {
  return request({ url: '/parking/area/list', params })
}
export const addParkAPI = (data) => {
  return request({ url: '/parking/area', method: 'post', data: {
    areaName: data.areaName,
    spaceNumber: data.spaceNumber,
    areaProportion: data.areaProportion,
    ruleId: data.ruleId,
    remark: data.remark

  }})
}
export const editParkAPI = (data) => {
  return request({ url: '/parking/area', method: 'put', data })
}
export const getDropAPI = (data) => {
  return request({ url: '/parking/area/dropList', data })
}

export const delParkAPI = (id) => {
  return request({ url: '/parking/area/' + id, method: 'delete' })
}

